package NGUYENHUUDUCARRAYEX;

public class ex6 {
	public static void main(String[] args) {
		Student[] SinhVien;
		SinhVien=new Student[10];
		Student sv01 = new Student(1, "NguyenVanA", 9);
		Student sv02 = new Student(2, "NguyenVanB", 3);
		Student sv03 = new Student(3, "NguyenVanC", 5);
		Student sv04 = new Student(4, "NguyenVanD", 4);
		Student sv05 = new Student(5, "NguyenVanE", 10);
		Student sv06 = new Student(6, "NguyenVanF", 0);
		Student sv07 = new Student(7, "NguyenVanG", 6);
		Student sv08 = new Student(8, "NguyenVanH", 7);
		Student sv09 = new Student(9, "NguyenVanI", 1);
		Student sv10 = new Student(10, "NguyenVanK", 8.5);
		SinhVien[0]=sv01;
		SinhVien[1]=sv02;
		SinhVien[2]=sv03;
		SinhVien[3]=sv04;
		SinhVien[4]=sv05;
		SinhVien[5]=sv06;
		SinhVien[6]=sv07;
		SinhVien[7]=sv08;
		SinhVien[8]=sv09;
		SinhVien[9]=sv10;
		
		for(int i=0;i<SinhVien.length;i++){
			System.out.println(+i);
			System.out.println("RollNo: "+SinhVien[i].getRollNo());
			System.out.println("FullName: "+SinhVien[i].getFullName());
			System.out.println("Mark: "+SinhVien[i].getMark());
		}
	}
}
